package com.zlyx.easy.core.utils;

import java.lang.annotation.Annotation;
import java.util.Set;

import com.zlyx.easy.core.list.Lists;

/**
 * @Auth 赵光
 * @Describle
 * @2019年1月5日 上午8:31:13
 */
public final class AnnotationUtils {

	public static Set<String> getNames(Class<?> cls) {
		Set<String> names = Lists.newHashSet();
		Annotation[] annotations = cls.getAnnotations();
		for (Annotation annotation : annotations) {
			names.add(annotation.annotationType().getSimpleName());
		}
		return names;
	}
}
